﻿@model ThesisSystem.Models.SysMenu

@Html.HiddenFor(model=>model.MenuID)
<div class="editor-label">
    @Html.LabelFor(model => model.Title)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Title)
    @Html.ValidationMessageFor(model => model.Title)
</div>
<div class="editor-label">
    @Html.LabelFor(model => model.MenuUrl)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.MenuUrl)
    @Html.ValidationMessageFor(model => model.MenuUrl)
</div>
<div class="editor-label">
    @Html.LabelFor(model => model.SortID)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.SortID)
    @Html.ValidationMessageFor(model => model.SortID)
</div>
@if (Convert.ToInt32(Request.QueryString["menuLevel"])!=1)
{
<div class="editor-label">
    @Html.LabelFor(model => model.ParentID)
</div>
<div class="editor-field">
    @Html.DropDownList("ParentID")
</div>
}
<div class="editor-label">
    @Html.LabelFor(model => model.Roles)
</div>
<div class="editor-field">
    @Html.EditorFor(model=>model.PStudent)@Html.LabelFor(m=>m.PStudent)
    @Html.CheckBoxFor(model => model.PTeacher)@Html.LabelFor(m => m.PTeacher)
    @Html.CheckBoxFor(model => model.PAdministrator)@Html.LabelFor(m => m.PAdministrator)
</div>
<div class="editor-label">
    @Html.LabelFor(model => model.Mark)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Mark)
    @Html.ValidationMessageFor(model => model.Mark)
</div>
<p>
    <input type="submit" value="添加" />
</p>
